package com.demo.login.service.impl;

import com.demo.login.commons.context.SpringContext;
import com.demo.login.dao.UserDao;
import com.demo.login.entity.User;
import com.demo.login.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao =  SpringContext.getBean("userDao");

    @Override
    public User getUserByEmail(String email) {
        return userDao.getUserByEmail(email);
    }
}
